package priv.stones.controller;

import com.baidu.ueditor.ActionEnter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: Stones
 * @Description:Ueditor编辑器
 * @Date: 2017/10/19 16:38
 */
@Controller
@RequestMapping("/ueditor")
public class UEditorController {

    @RequestMapping(value = "")
    @ResponseBody
    public String Config(HttpServletRequest request) {
        String rootPath = request.getSession().getServletContext().getRealPath("");
        return new ActionEnter(request,rootPath).exec();
    }


}
